package org.gtug.vg;

import android.app.Activity;
import android.os.Bundle;
import android.widget.TextView;
import org.gtug.vg.entities.NewEntity;


public class NewDetailActivity extends Activity {
	NewEntity newEntity = new NewEntity("", "");

	public void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		setContentView(R.layout.detail);
		NewEntity newEntity = (NewEntity) getIntent().getSerializableExtra("new");
		TextView txtTitle = (TextView) findViewById(R.id.title);
		txtTitle.setText(newEntity.getNewTitle());
		TextView txtBody = (TextView) findViewById(R.id.body);
		txtBody.setText(newEntity.getNewBody());
	}
}